﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Entity.Models.Entities
{
    /// <summary>
    /// 绑定菜单(中间表)
    /// </summary>
    public  class R_RoleInfo_MenuInfo: BaseEntity
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string MenuId { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string RoleId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        public R_RoleInfo_MenuInfo(string menuId, string roleId)
        {
            Id= Guid.NewGuid().ToString();
            MenuId = menuId;
            RoleId = roleId;
            CreateTime = DateTime.Now;
        }
        public R_RoleInfo_MenuInfo()
        {
        }
    }
}
